

for i in `ls /tftpboot/nodes/`
do
	if [[ "$i" == "." ]] || [[ "$i" == ".." ]];then
	    continue
	fi	
	nodedir="/tftpboot/nodes/${i}"

	if [ ! -d $nodedir ];then
	    continue
	fi

	cp rc.local ${nodedir}/etc/
	chmod 755 ${nodedir}/etc/rc.local
	cp rc-local.service ${nodedir}/etc/systemd/system/
done
